import auctionServer.AuctionServer;

public class AuctionServerMain {
	
	public static void main(String[] args){
		if(args.length < 1){
			System.err.println("You have to add port number to serve!");
			return;
		}
		int portNumber = Integer.parseInt(args[0]);
		if(portNumber == 0){
			System.err.println("You have to enter a valid port number value!");
			return;
		}
		
		AuctionServer server = new AuctionServer(portNumber);
		if(server.isError())
			return;
		server.startServing();
	} 
}
